package com.example.test.service.zerenlian;

public class AddFour extends AddBean {

    public AddFour(AddBean nextAddBean) {
        super(nextAddBean);
    }


    @Override
    public int addNum(int num) {
        num+=4;
        return getNextAddBean()==null?num:getNextAddBean().addNum(num);
    }
}
